/*
 * InfosMidi.cpp
 *
 *  Created on: 2 févr. 2011
 *      Author: quentin
 */

#include <cmath>
#include "InfosMidi.hpp"

InfosMidi::InfosMidi() {


}

InfosMidi::~InfosMidi() {
}

void InfosMidi::setDureeMidi(double dureeMidi){
        double temp = ceil(dureeMidi);
        unsigned int minutes = (unsigned int) temp/60;
        unsigned int secondes = (unsigned int) (temp - minutes*60);
        QString min, sec;

        min.setNum(minutes);
        sec.setNum(secondes);

        this->dureeMidi = min+":"+sec;
}

void InfosMidi::setNbNotes(double nbNotes){
        this->nbNotes.setNum(nbNotes);
}
